Skip to content

ci(voice-line): gate Worker version promotion - #12560

Merged
dezren39 merged 7 commits into
mainfrom
queue/voice-line-cf
Nov 23, 2026
Merged

dezren39 merged 7 commits into
mainfrom
queue/voice-line-cf

Conversation

@dezren39

@dezren39 dezren39 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Keep the existing voice-line Worker and its AI, Turso, secret, and SQLite Durable Object bindings.
  • Keep the pinned official Cloudflare cf CLI and Wrangler versions.
  • Replace automatic push-to-main promotion with a protected, manual main-only upload workflow that creates a Workers Version without changing traffic.
  • Add a separate manual main-only promotion workflow gated by the voice-line-worker-production GitHub environment. It requires the exact candidate UUID, full source SHA, successful upload run ID and attempt, and expected current serving Version UUID.
  • Before promotion, verify the upload run is a successful main-branch run of the expected workflow at the exact commit; verify the candidate tag/message and deployability; check the currently serving version twice; and read back the 100% deployment.
  • Use separately named environment-only Cloudflare token secrets, with no generic repository or organization secret fallback.

Validation

  • Worker tests: 32 passed
  • Deployment contract tests: 11 passed
  • Typecheck passed
  • cf build completed (Wrangler emitted a sandbox-only log-directory warning)
  • cf workers versions create --prebuilt ... --dry-run passed with the full SHA/run tag and message
  • Both GitHub workflow YAML files parsed; deployment scripts passed node --check; git diff --check passed

No Cloudflare credentials were used. No Worker Version was uploaded, no deployment or environment configuration was changed, and no voice request was made.

Required GitHub setup before workflows can run successfully

Configure voice-line-worker-upload and voice-line-worker-production environments with main-only branch policies, required independent reviewers, prevent self-review, and administrator bypass disabled. Add CLOUDFLARE_VOICE_LINE_UPLOAD_TOKEN only to the upload environment and CLOUDFLARE_VOICE_LINE_PROMOTION_TOKEN only to production; both Cloudflare tokens should use Individual Workers Editor scoped to the existing voice-line Worker. Set the non-secret CLOUDFLARE_ACCOUNT_ID environment variable in both environments.

Refs #9800


Run Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 40 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 13d53714-2a03-45db-8b17-f56085976724
Commits

Reviewing files that changed from the base of the PR and between a1148d5 and cf97afd.

Files ignored due to path filters: 1

  • pm-stack/voice-line-worker/ci/bun.lock is excluded by !**/*.lock
Files selected for processing: 13

  • .github/workflows/voice-line-worker-deploy.yml
  • .github/workflows/voice-line-worker-promote.yml
  • pm-stack/voice-line-worker/.gitignore
  • pm-stack/voice-line-worker/README.md
  • pm-stack/voice-line-worker/ci/deployment-config.check.mjs
  • pm-stack/voice-line-worker/ci/package.json
  • pm-stack/voice-line-worker/cloudflare.config.ts
  • pm-stack/voice-line-worker/scripts/check-environment.mjs
  • pm-stack/voice-line-worker/scripts/promote-version.mjs
  • pm-stack/voice-line-worker/scripts/upload-version.mjs
  • pm-stack/voice-line-worker/src/deploy-contract.mjs
  • pm-stack/voice-line-worker/test/deploy-contract.test.mjs
  • pm-stack/voice-line-worker/test/release-safety.test.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39 dezren39 changed the title ci(voice-line): deploy via Workers Versions ci(voice-line): gate Worker version promotion Nov 22, 2026
@dezren39
dezren39 marked this pull request as ready for review November 23, 2026 07:14
@dezren39
dezren39 merged commit ab12d7f into main Nov 23, 2026
1 check passed
@dezren39
dezren39 deleted the queue/voice-line-cf branch November 23, 2026 07:14
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T07:15:33.267511Z cf97afd Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant